<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BackRole extends Model
{
    use HasFactory;

    protected $table = 'zfm_role';


    // 在 BackRole 模型中定义与 BackPermission 模型的多对多关系
    public function permissions()
    {
        return $this->belongsToMany(BackPermission::class);
    }
}
